package springboot2.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springboot2.config.JdbcConfig;

@RestController
public class TestController {

    @Autowired
    private JdbcConfig jdbcConfig;

    @GetMapping("/test")
    public String test() {
        System.out.println(jdbcConfig.toString());

        return "jdbc config is " + jdbcConfig.toString();
    }
}
